package com.cy.sca.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @ClassName RemoteNoticeService
 * @Description:类描述
 * @Author Tedu
 * @Date 2021/6/9 8:56
 * @Version V1.0
 **/
@FeignClient(value = "sca-notice",contextId = "remoteNoticeService")
public interface RemoteNoticeService {
    @PostMapping("/notice/sms/send")
    void sendMsg(@RequestBody Map<String, Object> msg);

    @PostMapping("/notice/log/record")
    void doLoginfo(Map<String, Object> logInfo);
    //这里的@Requestbody可以省略,类比如普通项目中的Service接口中的写法
}
